package com.analyse.stock.service;

public interface IQuartzService {
    /**
     * 新增
     *
     * @param jobName
     * @param cron
     * @param jobClassName
     * @return
     */
    String addCronJob(String jobName, String cron, String jobClassName);

    /**
     * 停止
     *
     * @param jobName
     * @return
     */
    String deleteCronJob(String jobName);

    /**
     * 立即执行，不定时
     *
     * @param jobName
     * @param jobClassName
     * @return
     */
    String executeImmediately(String jobName, String jobClassName);

    //任务暂停
    String pauseTrigger(String jobName);

    // 任务恢复
    String resumeTrigger(String jobName);
}
